package com.newcapec.lesson1;

public class Demo1 {
    public static void main(String[] args) {
        Student student1 = new Student("张三", "男", 20, 101);
        Student student2 = new Student("张三", "男", 20, 101);
        System.out.println(student1 == student2);
      /*  Object o = student2;
        Person person = student2;
        Object o1 = person;*/
        student1.equals(student2);
        String str1 = new String("abc");
        String str2 = new String("abc");
        System.out.println(str1.equals(str2));
    }
}
